<div class="gallery-list">
  <input type="hidden" class="action-pagedata" value="{total:<{$total}>, pagecurrent:<{$page|default:1}>, pagetotal:<{$pagetotal}>}">
	<div class="row">
    <{foreach from=$goodsData key=key item=goods}>
	<ul class="list-unstyled">
	<li class="goods-item">
	<div class="item-line">
	<div class="col-lg-2 col-md-3 col-sm-3 col-xs-4">
	<{foreach from=$goods.props key=prop_key item=property}>
		<{if $property.name == 'HOT!'}>
			<{if strpos($property.value, "Новинка") !== false}>
				<div class="item-special new">NEW</div>
			<{elseif strpos($property.value, "Хит") !== false}>
				<div class="item-special hit">ХИТ</div>
			<{elseif strpos($property.value, "Сток") !== false}>
				<div class="item-special stock"><i class="icon-best-prices"></i></div>
			<{elseif strpos($property.value, "Резерв") !== false}>
				<div class="item-special reserve">Резерв</div>
			<{/if}>
		<{/if}>
		<{if $property.name == 'Скидка' || $property.name == 'Акция'}>
			<{if $property.value > 0}>
				<div class="item-special sale">-<{$property.value}>%</div>
			<{/if}>
		<{/if}>	
	 <{/foreach}>
    <{if $goods.products.promotion_type_name }>

    <a <{if $opentype eq 'new_page'}>target="_blank"<{/if}>  href="<{link app=starbuy ctl=site_team act=index arg0=$goods.products.product_id arg1=$goods.products.promotion_type_id}>" class="item-img-link"><img class="action-goods-img" data-src="<{$goods.image_default_id|default:$imageDefault.S.default_image|storager:'s'}>" alt="<{$goods.name|strip_tags}>"></a>
      <{else}>
      <a <{if $opentype eq 'new_page'}>target="_blank"<{/if}>  href="<{link app=b2c ctl=site_product arg0=$goods.products.product_id}>" class="item-img-link"><img class="action-goods-img" data-src="<{$goods.image_default_id|default:$imageDefault.S.default_image|storager:'s'}>" alt="<{$goods.name|strip_tags}>"></a>
      <{/if}>
      <{if $goods.tags && $gallery_display_tag_goods == 'true'}>
      <{foreach from=$goods.tags item=tags}>
      <{if $tags.params.tag_showOnIndex == 'on'}>
      <{if $tags.params.tag_image}>
      <span class="img-tag-<{$tags.params.pic_loc}>" style="opacity:<{$tags.params.tag_opacity / 100}>;filter:alpha(opacity=<{$tags.params.tag_opacity}>)"><img src="<{$tags.params.tag_image|storager}>"></span>
      <{else}>
      <!-- <span class="text-tag-<{$tags.params.pic_loc}>" style="background-color:<{$tags.tag_bgcolor|default:'transparent'}>;color:<{$tags.tag_fgcolor}>;opacity:<{$tags.params.tag_opacity / 100}>;filter:alpha(opacity=<{$tags.params.tag_opacity}>)"><{$tags.tag_name}></span>
      -->
      <{/if}>
      <{/if}>
      <{/foreach}>
      <{/if}>
    </div>
	
	
	<div class="col-lg-5 col-md-5 col-sm-9 col-xs-8">

      <!--预售商品的显示判断-->
      <{if !isset($goods.prepare)}>
        <{if $goods.products.promotion_type_name }>
        <div class="item-title"><a <{if $opentype eq 'new_page'}>target="_blank"<{/if}> href="<{link app=starbuy ctl=site_team act=index arg0=$goods.products.product_id arg1=$goods.products.promotion_type_id}>"><{$goods.name}></a>
        <{else}>
        <div class="item-title"><a <{if $opentype eq 'new_page'}>target="_blank"<{/if}> href="<{link app=b2c ctl=site_product arg0=$goods.products.product_id}>"><{$goods.name}></a>
        <{/if}>
        <{else}>
        <div class="item-title"><a <{if $opentype eq 'new_page'}>target="_blank"<{/if}> href="<{link app=b2c ctl=site_product arg0=$goods.products.product_id}>"><{$goods.name}></a>&nbsp;<span style="color:#fff;background:red;font-weight:bold;"><{t}>预售<{/t}></span>
      <{/if}>

    <{if $goods.tags && $gallery_display_tag_goods == 'true'}>
      <{foreach from=$goods.tags item=tags}>
      <{if $tags.params.tag_showOnIndex == 'on'}>
      <span class="text-tag-<{$tags.params.pic_loc}>" style="background-color:<{$tags.tag_bgcolor|default:'transparent'}>;color:<{$tags.tag_fgcolor}>;opacity:<{$tags.params.tag_opacity / 100}>;filter:alpha(opacity=<{$tags.params.tag_opacity}>)"><{$tags.tag_name}></span>
      <{/if}>
      <{/foreach}>
      <{/if}>
  </div>
	  <div class="item-annotation item-annotation-sm item-vendor-code small"><{t}>Артикул：<{/t}> <b><{$goods.bn}></b></div>
      <div class="item-annotation item-annotation-sm item-brand small"><{t}>品牌：<{/t}> <b><{t}><{$goods.brand_name}><{/t}></b></div>
	  <div class="item-annotation item-annotation-sm item-price small"><b>За пару от：</b> <span><{if $goods.mktprice > 0 }><span class="old-price"><{$goods.min_mktprice|cur}></span><{/if}><{t}><{$goods.min_s_price|cur}><{/t}></span></div>
	  <div class="item-annotation item-annotation-sm item-count small"><{t}>每包装数量：<{/t}> <b><{t}><{$goods.unit_num}><{/t}></b></div>
	  <div class="item-annotation item-annotation-sm item-price small item-price-per-box" data-price="<{$goods.min_price}>"><b>За короб от：</b> <span><{t}><{$goods.min_price|cur}><{/t}></span></div>
	  <!--<{foreach from=$goods.props item=props}>
	  <div  class="goods-desc"><{t}><{$props.name}>：<{/t}><{t}><{$props.value}><{/t}></div>
      <{/foreach}>-->
      <div class="goods-comment">
        <{if $point_status == 'on'}>
        <{if $goods.comments_count > 0}>
        <em class="stars stars-<{$goods.goods_point.avg_num*10}>">
          <span class="below"><i class="icon star">&#x2f;</i><i class="icon star">&#x2f;</i><i class="icon star">&#x2f;</i><i class="icon star">&#x2f;</i><i class="icon star">&#x2f;</i></span><span class="above"><i class="icon star">&#x2e;</i><i class="icon star">&#x2e;</i><i class="icon star">&#x2e;</i><i class="icon star">&#x2e;</i><i class="icon star">&#x2e;</i></span>
        </em>
        <{if $commentListListnum=='true'}>
        <a href="<{link app=b2c ctl=site_product arg0=$goods.products.product_id}>#product_comment"><b><{$goods.comments_count}></b><{t}>条评论<{/t}></a>
        <{/if}>
        <{else}>
        <{if $commentListListnum=='true'}>
        <{t}>暂无评论<{/t}>
        <{/if}>
        <{/if}>
        <{/if}>
      </div>
      <div class="promotion-tags">
      <{if $goods.promotion_tags && $env.conf.b2c.gallery.display.promotion == 'true'}>
        <{foreach from=$goods.promotion_tags item=pTag}>
        <span class="tag"><{$pTag.tag_name}></span>
        <{/foreach}>
    <{/if}>

    <{if $goods.products.promotion_type_name }>
    <span class="tag"><{$goods.products.promotion_type_name}></span>
    <{/if}>
      </div>
	</div>
	
	
	
	<div class="col-lg-5 col-md-6 col-sm-12 col-xs-12">
	<div style="margin-bottom: 20px;" class="text-right">
	 <!-------------------------------现价原价---------------------------->
	 	<!--<div  class="price_now">
	 	 <ul>
          <li style="margin-right:10px;"><ins class="price"><{$goods.products.price|cur_odr}></ins></li>
          <{if $env.conf.b2c.site.show_mark_price == 'true'}>
          <li><del class="price"><{$goods.products.mktprice|cur_odr}></del></li>
          <{if $env.conf.b2c.site.save_price == '1'}>
          <{elseif $env.conf.b2c.site.save_price == '2'}>
          <li><label for="">优惠：</label><span><{$goods.products.price/$goods.products.mktprice*100|number:'2'}>%</span></li>
          <{elseif $env.conf.b2c.site.save_price == '3'}>
          <li><label for="">折扣：</label><span><{$goods.products.price/$goods.products.mktprice*100|number:'1'}><{t}>折<{/t}></span></li>
          <{/if}>
          <{/if}>
      </ul>
	  </div>-->

	 <!-------------------------------现价原价end---------------------------->
	  
	 <!-------------------------------收藏---------------------------------->
	
        <{if $login=='nologin'}>
        <a href="<{link app=b2c ctl=site_passport act=login}>" class="btn btn-xs btn-default"><span class="glyphicon glyphicon-heart"></span> <{t}>收藏<{/t}></a>
        <{else}>
        <{if !$goods.is_fav}>
        <button type="button" class="btn btn-xs btn-default" rel="_favbtn_" data-gid="<{$goods.goods_id}>"><span class="glyphicon glyphicon-heart"></span> <{t}>收藏<{/t}></button>
	
        <button type="button" class="btn btn-xs btn-default disabled" rev="_favbtn_" style="display:none;"><span class="glyphicon glyphicon-heart"></span> <{t}>已收藏<{/t}></button>
		
        <{else}>
        <button type="button" class="btn btn-xs btn-default" rel="_favbtn_" data-gid="<{$goods.goods_id}>" style="display:none;"><span class="glyphicon glyphicon-heart"></span> <{t}>收藏<{/t}></button>
		
        <button type="button" class="btn btn-xs btn-default disabled" rev="_favbtn_"><span class="glyphicon glyphicon-heart"></span> <{t}>已收藏<{/t}></button>

        <{/if}>
        <{/if}>
        <button type="button" class="btn btn-xs btn-default action-compare" data-compare='{type_id:"<{$goods.type_id}>",goods_id:"<{$goods.goods_id}>",img:"<{$goods.image_default_id|storager:'s'}>",name:"<{$goods.name|strip_tags}>",price:"<{$goods.products.price|cur_odr}>"}'><i class="icon-compare"></i> <{t}>比价<{/t}></button>
	

	  <!-------------------------------收藏end---------------------------->
	  
	   <!-------------------------加入购物车------------------------------>

      <!--预售商品的显示判断-->
      <{if !isset($goods.prepare)}>

          <{if $goods.products.store > 0}> 
          <{if $env.conf.b2c.gallery.display.buynum == 'true'}>
          <span class="p-quantity " >
            <a href="javascript:void(0);" class="btn-decrease"  style="width: 22px; height: 22px; line-height: 20px;" >-</a><input type="text" min="1" max="<{$goods.products.store|number}>" size="2" name="goods[num]" class="action-quantity-input form-control input-sm"  style="width: 22px; height: 22px;" value="1"><a href="javascript:void(0);"  style="width: 22px; height: 22px; line-height: 20px;" class="btn-increase">+</a>
            <{if $env.conf.b2c.gallery.display.store_status == 'true'}>
            <{if $goods.products.store <= $env.conf.b2c.gallery.store_status.num}>
           <!-- <span class="store-warn"><{t}>库存紧张<{/t}></span> /-->
            <{/if}>
            <{/if}>
          </span>

          <input type="hidden" name="goods[goods_id]" value="<{$goods.goods_id}>">
          <input type="hidden" name="goods[product_id]" value="<{$goods.products.product_id}>">
          <{/if}>
          <{if $env.conf.b2c.site.buy.target == '2'}>
          <{assign var='buytarget' value='_blank_cart'}>
          <{elseif $env.conf.b2c.site.buy.target == '3'}>
          <{assign var='buytarget' value='_dialog_minicart'}>
          <{/if}>
          <a class="btn btn-xs btn-primary action-addtocart " onmousedown="try { rrApi.addToBasket(<{$goods.goods_id}>) } catch(e) {}" href="<{link app=b2c ctl=site_cart act=add arg0=goods arg1=$goods.goods_id arg2=$goods.products.product_id arg3=1}>"<{if $buytarget}> target="<{$buytarget}>"<{/if}>><i  class="iconfont gouwuche1 shubuycar">&#xe607;</i> <{t}>В корзину<{/t}></a>
		  <div class="clearfix"></div><!--加入购物车-->
          <{elseif $goods.spec_desc && $goods.store}>
          <a class="btn btn-caution" href="<{link app=b2c ctl=site_product arg0=$goods.products.product_id}>"><span><span><{t}>查看详情<{/t}></span></span></a>
          <{else}>
          <!-- 到货通知 -->
          <a href="javascript:void(0);"  class="btn btn-primary btn-xs action-notify" rel="<{$goods.goods_id}>::<{$goods.products.product_id}>"><span><span><{t}>Узнать о наличии<{/t}></span></span></a><!--到货通知-->
          <{/if}>


      <{else}>
      <!--预售商品-->
        <div class="goods-buy" style="display: inline-block;">

          <!-- 加入购物车 -->
          <span class="p-quantity">
            <input type="text" min="1" readonly="true" max="<{$goods.products.store|number}>" size="2" name="goods[num]" class="action-quantity-input" value="1">
          </span>
          <input type="hidden" name="goods[goods_id]" value="<{$goods.goods_id}>">
          <input type="hidden" name="goods[product_id]" value="<{$goods.products.product_id}>">


          <a class="btn btn-major"  href="<{link app=b2c ctl=site_product arg0=$goods.products.product_id}>"><span><span><{t}>立即预定<{/t}></span></span></a>

        </div>
      <{/if}>

	<!-------------------------加入购物车end------------------------------>

	</div>
	</div>
	<div class="clearfix"></div>
	</div>
	</li>
	</ul>
    <{/foreach}>
	</div>
</div>
<{pagers data=$pager}>
